Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Fable 3 to hang if called from .NET 7 #3448

Merged
merged 2 commits into from
May 11, 2023

Conversation

MangelMaxime
Copy link
Member

@MangelMaxime MangelMaxime commented May 8, 2023

This PR improve the situation when trying to use Fable 3 with .NET 7 #3294

This PR doesn't add support for .NET 7 because, I was not able to complete it (Failed attempt in #3363). Instead, it detect the version of dotnet used to call Fable and if it is higher than 6, it will stop Fable and report a detailed error to guide the user.

The error message contains the following information:

  • Explain that Fable 3 doesn't support .NET 7 and above
  • Version detected
  • Encourage to upgrade to Fable 4
  • Explains how to use global.json to stay on Fable 3 (avoid upgrading to Feliz 2 etc.) and suggest a location for the global.json based on the command invocation location.

Preview:

CleanShot 2023-05-08 at 17 46 29

Having such an improvement is important for templates or blog post / getting started. Indeed, upgrading to a major version for templates can takes some times and having the new user experience a process hang is not a good experience.

At least, with this error message people will be able to understand the situation and also not wait for a process which is blocked.

@alfonsogarciacaro You can merge the PR no problem but please don't release it yet. I want to have a look at #3441 too. My goal is to have a maintenance release of Fable 3 to make transition easier for users. I would have liked to do it sooner but better late than never 😇

@MangelMaxime MangelMaxime merged commit 9f429e6 into fable3 May 11, 2023
@MangelMaxime MangelMaxime deleted the fable_3_prevent_hang branch May 11, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant